package com.rdzn.mall.portal.config;

import com.rdzn.mall.portal.domain.Location;
import lombok.Data;

/**
 * @author zhigangding
 * @date 2019/12/3
 */
@Data
public class RequestContext {

    /**language*/
    private String wxOpenId;

    /**language*/
    private String sessionKey;

    private static RequestContext context;

    private Location location;

    private RequestContext(){
    }

    public static RequestContext getInstance(){
        if (context == null){
            context = new RequestContext();
        }
        return context;
    }

    public void clean(){
        wxOpenId = null;
        sessionKey = null;
        location = null;
    }

}
